<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );

	?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta name="description" content="">
<meta name="keywords" content="">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
	if ( is_singular() && get_option( 'thread_comments' ) )
	wp_enqueue_script( 'comment-reply' );

	wp_head();
?>
<script type="text/javascript" src="<?php  bloginfo('template_url'); ?>/images/jq.js"></script>
<script type="text/javascript" src="<?php  bloginfo('template_url'); ?>/js/page.js"></script>
<link rel="stylesheet" href="<?php  bloginfo('template_url'); ?>/images/jquery-ui.css" type="text/css">
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
</head>
<script type="text/javascript">
if(!ajaxurl){
	var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>';
}
if(!themeurl){
	var themeurl ='<?php  bloginfo('template_url'); ?>'; 
}
var home_url = '<?php bloginfo('home');?>/';
</script>
<body>
<div class="float_window">
	<div class="close"></div>
	<div id="float_window">
</div>
</div>
<div class="z"><!--主区域-->
	<div class="header"><!--头部-->
		<a class="logo" href="http://bilibili.kankanews.com/"></a>
        <div class="sreach">
        <ul class="search_S">
        <li><input class="s" type="text" value="" name="s"  /></li>
        <li><input class="sub" type="submit" value="搜 索"  /></li>
        <li><input class="p" type="image" src="<?php  bloginfo('template_url'); ?>/images/images/p.gif"  /></li>
        <div style="clear:both;"></div>
        </ul>
        <div style="clear:both;"></div>
        <ul class="tag_name">
        <li><a href="#">CG视频</a></li>
        <li><a href="#">CG教程</a></li>
        <li><a href="#">实验室</a></li>
        <li><a href="#">瓜姬</a></li>
        <li><a href="#">漫友</a></li>
        <li><a href="#">百科</a></li>
        <li><a href="#">奇怪的地方</a></li>
        <div style="clear:both;"></div>
        </ul>
        <div style="clear:both;"></div>
        </div>
        <div class="login">
        <ul><?php $url_this = site_url();?>
        <?php if(!is_user_logged_in()){?>
        <li><a class="log" onclick="javascript:logins();">登录</a></li>
        <li><a href="javascript:register();">注册</a>&nbsp;&nbsp;| </li>
        <li><a href="<?php echo $url_this; ?>/wp-login.php?action=lostpassword">忘记密码</a>&nbsp;&nbsp;| </li>
        <?php }else{?>
        <?php $current_user = wp_get_current_user();?>
        <li>您好！ <?php echo $current_user->display_name;?>&nbsp;&nbsp;&nbsp;|</li>
        <li><a href="<?php echo wp_logout_url( $url_this); ?>">退出</a>&nbsp;&nbsp;|</li>
        <?php }?>
  
        <li><a href="http://www.cgebook.com">返回CG论坛</a></li>
        <div style="clear:both;"></div>
        </ul>
        <div style="clear:both;"></div>
        <ul style="margin-top:20px; clear:both;">
        <li><a href="<?php bloginfo('home');?>/member"><img src="<?php  bloginfo('template_url'); ?>/images/images/submit_video.gif"  /></a></li>
        <li><a href="#"><img src="<?php  bloginfo('template_url'); ?>/images/images/zoon.gif"  /></a></li>
        </ul>
        </div>
        <div class="num access" role="navigation">
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary','items_wrap' => '<div class="bg_l"></div><ul id="%1$s" class="%2$s">%3$s</ul><div class="bg_r"></div>') ); ?>
    	</div>
	</div>      
<!--[if lt IE 7]>
<script type="text/javascript" language="JavaScript">

</script>
<![endif]-->